<?php

namespace Database\Seeders;

use App\Models\Record;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class RecordSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
//        1、可修改状态
        Record::factory()->count(200)->create();
//        2、不可修改状态
        Record::where("id", ">", 100)->update(['start_at'=>now()->subDays(20),"expired_at" => now()->addDays(15)]);
    }
}
